package com.springboot.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/************************************************************************
 *
 *    Copyright  Copyright 2021 Google Inc.
 *    File Name: Worker
 *    Description: 描述
 *
 *    Version: V1.0
 *    Author: Fuc
 *    Create Time: 2021-01-13
 *
 *************************************************************************/

@Profile("test")
@Component
@ConfigurationProperties("person")
@Data
public class Worker implements Person{
    @Override
    public String getName() {
        return null;
    }

    @Override
    public Integer getAge() {
        return null;
    }
}

